import java.awt.event.ActionListener;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;


@SuppressWarnings("serial")
public class ChatPopup extends JPopupMenu
{
	String username;
	JMenuItem ignoreOrListen;

	public ChatPopup(ActionListener listen)
	{
		username = "";
		JMenuItem poke = new JMenuItem("Poke");
		poke.addActionListener(listen);
		add(poke);
		JMenuItem whisper = new JMenuItem("Whisper");
		whisper.addActionListener(listen);
		add(whisper);
		JMenuItem playAGame = new JMenuItem("Play A Game With...");
		playAGame.addActionListener(listen);
		add(playAGame);
		ignoreOrListen = new JMenuItem("Ignore");
		ignoreOrListen.addActionListener(listen);
		add(ignoreOrListen);
	}
	
	public void showIgnore()
	{
		ignoreOrListen.setText("Ignore");
	}
	
	public void showListen()
	{
		ignoreOrListen.setText("Listen");
	}
}
